package com.pbdemo;

import xyz.noark.core.annotation.Configuration;
import xyz.noark.core.annotation.configuration.Bean;
import xyz.noark.game.monitor.MonitorManager;
import xyz.noark.game.monitor.impl.*;


@Configuration
public class GameServerConfiguration {

    /**
     * 监控管理器.
     */
    @Bean
    public MonitorManager monitorManager() {
        MonitorManager manager = new MonitorManager();
        manager.addMonitorService(new MemoryMonitorService());
        manager.addMonitorService(new GcMonitorService());
        manager.addMonitorService(new PacketMonitorService());
        manager.addMonitorService(new ThreadMonitorService());
        manager.addMonitorService(new NettyDirectMemoryMonitorService());
        return manager;
    }
}